enum foo : unsigned char { test = 0, test2 = 0x100, }; int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp:4:10: error: enumerator value 256 is outside the range of underlying type ‘unsigned char’ test2 = 0x100, ^~~~~
Standard output is empty